package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 采购额度使用记录
 * </p>
 *
 * @author
 * @since 2023-09-15
 */
@Getter
@Setter
@TableName("h2_shop_purchase_account_record")
@Schema(name = "ShopPurchaseAccountRecord", description = "采购额度使用记录")
public class ShopPurchaseAccountRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "采购账户id")
    private Long accountId;

    @Schema(description = "使用额度")
    private BigDecimal useAmount;

    @Schema(description = "使用日期")
    private LocalDate useDate;

    @Schema(description = "采购id")
    private Long purchaseId;

    @Schema(description = "使用时间")
    private LocalDateTime createDate;

    @Schema(description = "使用后")
    private BigDecimal afterAmount;

    @Schema(description = "类型1：采购，2：升级")
    private Integer type;


}
